#include<iostream>
#include"EquationSolver.h"
#include<cmath>
#include<limits>

double Function::operator()(double _x)
{
  return (pow(_x,3) + 4*_x*_x + 3*_x + 1);
}

double Function::diff(double _x)
{
  return 0 ;
}

int main(){
  Function f;
  Secant Sec( 0, -0.5, 0.000001, 10000, f);
  Sec.solve();
  return 0;
}
